﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class FrontPages_NewsDetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack) {
            string ID = Request.Url.Query.Replace("?ID=", ""); //详细页下一条下一条进来
            if (string.IsNullOrEmpty(ID)) {
                 ID = Request.UrlReferrer.Query.Replace("?ID=", ""); //列表页点进来
                 NewsDetail.HostName = Request.UrlReferrer.Host;
            }
            string[] arr = ID.Split('&');
            if (arr != null && arr.Length > 0)
            {
                //NewsDetail.HostName = "www.ilenor.cc";
                NewsDetail.InitNewsDetail(arr[0]);
            }
        }
    }
}